package www.ld.com.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import www.ld.com.common.ServiceNameConstants;
import www.ld.com.domain.R;
import www.ld.com.domain.dto.user.UserInfoDTO;
import www.ld.com.feign.impl.UserFeignServiceImpl;

@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE, fallback = UserFeignServiceImpl.class)
public interface UserFeignService {
    @PostMapping("/personal/oauth/{username}")
    R<UserInfoDTO> getPersonalByUsername(@PathVariable("username") String username);
}
